<?php 

namespace Example\Controller;

use Example\Service\UserInfoService;
use Plume\Core\Controller;
use Plume\Core\Service;
use Plume\Core\Dao;
use Example\Dao\UserInfoDao;

class TestController extends Controller{

    public function __construct($app) {
        //使用自定义Service
        // parent::__construct($app, new UserInfoService($app));
        //使用默认Service和自定义DAO
        parent::__construct($app, new Service($app, new UserInfoDao($app)));
        //使用默认Service和默认DAO
        // parent::__construct($app, new Service($app, new Dao($app, 'user_info')));
    }

	public function indexAction(){
		 return $this->result(array())->response();
	}
}